package com.sluggard.security.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sluggard.security.manage.model.entity.RoleEntity;
import com.sluggard.security.manage.model.res.Option;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色xinxi Mapper 接口
 * </p>
 *
 * @author lizheng
 * @since 2024-04-28
 */
public interface RoleMapper extends BaseMapper<RoleEntity> {

    List<RoleEntity> selectRoleByUserId(@Param("userId") Long userId);

    List<Option> selectByName(@Param("name") String name);
}
